import React, { useState } from 'react';
import './fastgpt_iframe.css'; // 引入样式文件

const FastGPTIframe = ({ isVisible, handleClose }: { isVisible: boolean, handleClose: () => void }) => {


  return (
    isVisible ? (
      <div className="fastgpt-iframe-wrapper">
        <button className="fastgpt-close-button" onClick={handleClose}>
          ×
        </button>
        <iframe
          className="fastgpt-iframe"
          src="http://fastgpt.7venmintues.com:13389/chat/share?shareId=neGM3tADcVsA6oVlFotdjltM"
          title="FastGPT Chat"
          allow="microphone *; *"
        />
      </div>
    ) : null
  );
};

export default FastGPTIframe;
